home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Developer Connection Student Program
/
ADC Tools Sampler CD Disk 3 1999.iso
/
Cool Demos, SDKs, & Tools
/
Demos⁄Tools⁄Offers
/
Alpha ƒ
/
Tcl
/
Completions
/
Tcl Tutorial.tcl
< prev
next >
Wrap
Text File
|
1998-04-16
|
906b
|
41 lines
Tcl Mode Completions
Use the 'back-quote' key to jump to the next completion, or just position the
cursor appropriately, and then hit the completion invoking key ('cmd-tab'
--default, 'tab' --alternative set).
(a) Here are some typical uses of electric completions:
for◊
while◊
switch◊
(b) It's important spell long variable names correctly. Notice that leading
'$' signs are ignored.
while {$myVeryLongVariableName>0} {
incr my◊
}
(c) By pressing the invoking key multiple times, you can switch between any
number of alternative completions both above and below the insertion point.
If you cycle through all possibilities, the entire name is highlighted so
you can delete it easily if desired.
set myOtherLongVariable 0
while {$myVeryLongVariableName>0} {
incr my◊
}
set myVariableBelow 0.1
proc main {} {
# just for show
puts stdout "Hello World"
exit
}